@charset "utf-8";
@import "_reset.scss";
@import "common.scss";
//商品楼层一主色调
$firstMainColor: #a5643c;
//商品楼层二主色调
$secondMainColor: #607591;
@mixin section-headbox-animate1 {
    content: "";
    position: absolute;
    top: -200px;
    right: 0px;
    width: 360px;
    height: 360px;
    background: rgba(150, 50, 100, 0.5);
    transform: rotate(55deg) translateX(60px);
    transform-origin: 100% 0%;
    transition: all 0.5s ease 0.3s;
}

@mixin section-headbox-animate2 {
    content: "";
    position: absolute;
    bottom: -200px;
    left: 0px;
    width: 360px;
    height: 360px;
    background: rgba(150, 50, 100, 0.5);
    transform: rotate(55deg) translateX(-60px);
    transform-origin: 0% 100%;
    transition: all 0.5s ease 0.3s;
}
//body背景色
body {
    background-color: #f1f1f1;
}
//头部下面的大图
.header_img {
    width: 100%;
    min-width: 1320px;
    height: 594px;
    img {
        display: block;
        width: 100%;
        height: 594px;
    }
}

//主题内容
section {
    .section-headbox {
        padding-top: 52px;
        width: 1320px;
        .section-headbox-left,
        .section-headbox-right {
            position: relative;
            background: gray;
            float: left;
            width: 315px;
            height: 315px;
            >img {
                width: 315px;
                height: 315px;
            }
        }
        .section-headbox-left {
            overflow: hidden;
            margin: {
                right: 20px;
            }
            &::before {
                @include section-headbox-animate1;
            }
            &::after {
                @include section-headbox-animate2;
            }
            &:hover::before {
                top: 0px;
            }
            &:hover::after {
                bottom: 0px;
            }
            &:hover .hover {
                height: 120px;
                transform: rotate(0deg);
            }
            >.hover {
                overflow: hidden;
                top: 100px;
                position: absolute;
                height: 0px;
                width: 315px;
                transition: all 0.5s;
                background: rgba(0, 0, 0, 0.5);
                z-index: 1000;
                text-align: center;
                transform: rotate(55deg);
                h3 {
                    color: white;
                    padding: {
                        top: 10px;
                        bottom: 10px;
                    }
                    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
                }
                p {
                    color: white;
                    margin-top: 8px;
                    line-height: 30px;
                }
                a {
                    text-decoration: none;
                    color: white;
                    &:hover {
                        opacity: 0.7;
                    }
                }
            }
        }
        .section-headbox-mid {
            overflow: hidden;
            position: relative;
            background: gray;
            float: left;
            width: 650px;
            height: 315px;
            margin: {
                right: 20px;
            }
            >.hover {
                overflow: hidden;
                top: 100px;
                position: absolute;
                height: 0px;
                width: 650px;
                transition: all 0.5s;
                background: rgba(0, 0, 0, 0.5);
                z-index: 1000;
                text-align: center;
                transform: rotate(55deg);
                h3 {
                    color: white;
                    padding: {
                        top: 10px;
                        bottom: 10px;
                    }
                    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
                }
                p {
                    color: white;
                    margin-top: 8px;
                    line-height: 30px;
                }
                a {
                    text-decoration: none;
                    color: white;
                    &:hover {
                        opacity: 0.7;
                    }
                }
            }
            &:hover .hover {
                height: 120px;
                transform: rotate(0deg);
            }
            >img {
                width: 650px;
                height: 315px;
            }
            &::before {
                @include section-headbox-animate1;
            }
            &::after {
                @include section-headbox-animate2;
            }
            &:hover::before {
                top: 0px;
            }
            &:hover::after {
                bottom: 0px;
            }
        }
        .section-headbox-right {
            overflow: hidden;
            &::before {
                @include section-headbox-animate1;
            }
            &::after {
                @include section-headbox-animate2;
            }
            &:hover::before {
                top: 0px;
            }
            &:hover::after {
                bottom: 0px;
            }
            >.hover {
                overflow: hidden;
                top: 100px;
                position: absolute;
                height: 0px;
                width: 315px;
                transition: all 0.5s;
                background: rgba(0, 0, 0, 0.5);
                z-index: 1000;
                text-align: center;
                transform: rotate(55deg);
                h3 {
                    color: white;
                    padding: {
                        top: 10px;
                        bottom: 10px;
                    }
                    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
                }
                p {
                    color: white;
                    margin-top: 8px;
                    line-height: 30px;
                }
                a {
                    text-decoration: none;
                    color: white;
                    &:hover {
                        opacity: 0.7;
                    }
                }
            }
            &:hover .hover {
                height: 120px;
                transform: rotate(0deg);
            }
        }
    }
    .brand-logo {
        width: 100%;
        margin-top: 52px;
        li {
            width: 132px;
            height: 104px;
            border-right: 1px solid #b5b5b5;
            text-align: center;
            float: left;
            transition: all 3s;
            cursor: pointer;
            .brand-logo-img {
                width: 98px;
                height: 41px;
                margin-left: 17px;
                margin-top: 18px;
                background: url(../images/index/bg1.png) no-repeat;
                transition: all 3s;
            }
            .brand-logo-img2 {
                width: 98px;
                height: 50px;
                margin-left: 40px;
                margin-top: 10px;
                background: url(../images/index/brand-pic2.png) no-repeat;
                transition: all 3s;
            }
            p {
                font-size: 13px;
                color: #535353;
                margin-top: 5px;
                transition: all 3s;
            }
        }
        li:hover {
            background: #313131;
            p {
                color: white;
            }
            .brand-logo-img {
                background: url(../images/index/bg2.png)no-repeat;
            }
            .brand-logo-img2 {
                background: url(../images/index/brand-pic4.png)no-repeat;
            }
        }
    }
}

@mixin mainTitle {
    width: 272px;
    margin: 12px 20px;
    font-size: 16px;
    line-height: 16px;
    color: #707070;
    //  强制不换行
    white-space: nowrap;
    overflow: hidden;
}

//广告2模块的副标题
@mixin subTitle {
    width: 272px;
    font-size: 12px;
    line-height: 20px;
    max-height: 40px;
    color: #707070;
    overflow: hidden;
    margin-left: 20px;
    margin-bottom: 8px;
}

//鼠标经过图片添加模糊效果
@mixin cover {
    width: 100%;
    height: 100%;
    position: absolute;
}

//广告2模块动画效果
@keyframes adTwoAnimation {
    form {
        box-shadow: 0 0 5px #66FF66;
    }
    to {
        box-shadow: 0 0 20px #38ebc3;
    }
}

//商品楼层一动画效果
@keyframes floorOne {
    from {
        transform: scale(1);
        box-shadow: 0 0 5px #e51a8d;
    }
    to {
        transform: scale(1.1);
        box-shadow: 0 0 20px #e024de;
    }
}

//商品楼层二动画效果
@keyframes floorTwo {
    from {
        opacity: 0;
        transform: rotate(10deg);
        box-shadow: 0 0 5px #e51a8d;
    }
    to {
        opacity: 1;
        transform: rotate(-10deg);
        box-shadow: 0 0 20px #e024de;
    }
}

//主题内容
section {
    //  广告2模块
    .second_ad {
        margin-top: 52px;
        table {
            tr {
                height: 423px;
                &:first-child {
                    height: 403px;
                }
                &:first-child td {
                    padding-top: 0;
                }
                td {
                    width: 315px;
                    padding-right: 20px;
                    padding-top: 20px;
                    vertical-align: top;
                    &:last-child {
                        padding-right: 0;
                    }
                    //                  垂直放置的图片
                    .content_first {
                        background-color: #fff;
                        overflow: hidden;
                        &:hover {
                            animation: adTwoAnimation 1s ease-out infinite alternate;
                        }
                        .vertical {
                            width: 100%;
                            height: 738px;
                            &:hover {
                                opacity: 0.7;
                            }
                            img {
                                display: block;
                                width: 100%;
                            }
                        }
                        h4 {
                            @include mainTitle;
                        }
                        p {
                            @include subTitle;
                        }
                    }
                    //                  小图
                    .content_second {
                        background-color: #fff;
                        overflow: hidden;
                        &:hover {
                            animation: adTwoAnimation 1s ease-out infinite alternate;
                        }
                        .normal {
                            width: 100%;
                            height: 315px;
                            &:hover {
                                opacity: 0.7;
                            }
                            img {
                                display: block;
                                width: 100%;
                            }
                        }
                        h4 {
                            @include mainTitle;
                        }
                        p {
                            @include subTitle;
                        }
                    }
                    //                  横向放置的图片
                    .content_third {
                        background-color: #fff;
                        overflow: hidden;
                        &:hover {
                            animation: adTwoAnimation 1s ease-out infinite alternate;
                        }
                        .across {
                            width: 100%;
                            height: 315px;
                            &:hover {
                                opacity: 0.7;
                            }
                            img {
                                display: block;
                                width: 100%;
                            }
                        }
                        h4 {
                            @include mainTitle;
                        }
                        p {
                            @include subTitle;
                            width: 432px;
                        }
                    }
                }
            }
        }
    }
    //  中间广告条模块
    .mid_banner {
        margin-top: 42px;
        position: relative;
        .mid_banner_img {
            width: 100%;
            height: 120px;
            &:hover {
                opacity: 0.7;
            }
            img {
                display: block;
                width: 100%;
            }
        }
    }
    //  商品楼层一
    .commodity_floor {
        margin-top: 52px;
        .hd {
            border-bottom: 1px solid $firstMainColor;
            .head_title {
                width: 240px;
                border-bottom: 1px solid $firstMainColor;
                .head_title_l {
                    width: 90px;
                    height: 24px;
                    font-size: 14px;
                    color: #fff;
                    background-color: $firstMainColor;
                    text-align: center;
                    line-height: 24px;
                }
                .head_title_r {
                    width: 150px;
                    font: 14px arial;
                    color: #535353;
                    text-align: center;
                    line-height: 24px;
                }
            }
            .head_nav {
                ul {
                    li {
                        float: left;
                        font-size: 12px;
                        line-height: 24px;
                        margin-right: 20px;
                        a {
                            color: #535353;
                            &:hover {
                                color: $firstMainColor;
                            }
                        }
                    }
                }
            }
        }
        .bd {
            margin-top: 20px;
            .bd_l {
                .bd_l_top {
                    width: 264px;
                    height: 355px;
                    position: relative;
                    img {
                        display: block;
                        width: 100%;
                    }
                    .promotion {
                        position: absolute;
                        left: 0;
                        bottom: 0;
                        width: 100%;
                        text-align: center;
                        background-color: rgba(255, 255, 255, 0.5);
                        p {
                            font-size: 12px;
                            line-height: 32px;
                            a {
                                color: #535353;
                            }
                        }
                    }
                }
                .bd_l_bot {
                    position: relative;
                    width: 100%;
                    height: 118px;
                    background-color: $firstMainColor;
                    text-align: center;
                    overflow: hidden;
                    color: #fff;
                    &:hover {
                        animation: floorOne .8s ease-out infinite alternate;
                    }
                    h3 {
                        font-size: 22px;
                        line-height: 22px;
                        margin-top: 30px;
                    }
                    p {
                        font-size: 16px;
                        line-height: 16px;
                        margin-top: 16px;
                    }
                    .small_logo {
                        position: absolute;
                        width: 36px;
                        right: 10px;
                        bottom: 10px;
                        img {
                            display: block;
                            width: 100%;
                            opacity: 0.3;
                        }
                    }
                }
            }
            .bd_r {
                width: 1056px;
                ul {
                    li {
                        float: left;
                        width: 263px;
                        height: 236px;
                        background-color: #fff;
                        margin-right: 1px;
                        margin-bottom: 1px;
                        &:nth-child(5) {
                            margin-bottom: 0;
                        }
                        &:nth-child(6) {
                            margin-bottom: 0;
                        }
                        &:nth-child(7) {
                            margin-bottom: 0;
                        }
                        &:last-child {
                            margin-bottom: 0;
                        }
                        .headline {
                            margin: 16px 0;
                            padding-left: 16px;
                            h3 {
                                width: 144px;
                                font-size: 16px;
                                line-height: 16px;
                                color: #535353;
                                white-space: nowrap;
                                overflow: hidden;
                            }
                            p {
                                font-size: 12px;
                                width: 144px;
                                line-height: 12px;
                                color: $firstMainColor;
                                margin-top: 12px;
                                white-space: nowrap;
                                overflow: hidden;
                            }
                        }
                        .commodity {
                            width: 100%;
                            height: 150px;
                            position: relative;
                            &:hover {
                                animation: floorOne .8s ease-out infinite alternate;
                            }
                            a {
                                position: absolute;
                                width: 100%;
                                top: 50%;
                                transform: translateY(-50%);
                                img {
                                    display: block;
                                    margin: 0 auto;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    .second_floor {
        .hd {
            border-color: $secondMainColor;
            .head_title {
                border-color: $secondMainColor;
                .head_title_l {
                    background-color: $secondMainColor;
                }
            }
            .head_nav {
                ul {
                    li {
                        a {
                            &:hover {
                                color: $secondMainColor;
                            }
                        }
                    }
                }
            }
        }
        .bd {
            .bd_l {
                .bd_l_bot {
                    background-color: $secondMainColor;
                    &:hover {
                        animation: floorTwo .8s ease-out infinite alternate;
                    }
                }
            }
            .bd_r {
                ul {
                    li {
                        .headline {
                            p {
                                color: $secondMainColor;
                            }
                        }
                        .commodity {
                            &:hover {
                                animation: floorTwo .8s ease-out infinite alternate;
                            }
                        }
                    }
                }
            }
        }
    }
}

//侧边栏
aside {
    position: fixed;
    right: 0;
    top: 0;
    width: 2%;
    height: 4436px;
    background: #565656;
    >a  >img{
        width: 30px;
        height: 30px;
    }
    .user{
        margin-top: 140px;
        margin-bottom: 30px;
    }
    .pinpai{
        margin-bottom: 30px;
    }
    .collection{
        margin-bottom: 30px;
    }
    .liulan{
        margin-bottom: 30px;
    }
    .shoppingcar{
        img{
            width: 30px;
            
        }
       p{
           text-align: center;
           color: red;
       }
    }
}


